package com.hm.fast.service;

import com.hm.fast.auto.su.BaseDao;
import com.hm.fast.domain.SubscriberDomain;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;

/**
 * @author shishun.wang
 * @version 1.0
 * @date 2019/3/17 19:00
 * @describe
 */
@Service
@Transactional
public class SubscriberService {

    @Autowired
    private BaseDao baseDao;

    public void initSubscriber(SubscriberDomain subscriber){
        /*baseDao.findOneBySQL("select * from hm_subscriber");*/
        baseDao.delete(SubscriberDomain.class,1l);
    }
}
